﻿using System;
using System.IO;

namespace ChongJu.GlobalInfo
{
    public static class ConfigFileInfo
    {
        //config
        public static readonly string ConfigDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config");
        public static readonly string CamereConfig = Path.Combine(ConfigDir, "Camera.txt");
        public static readonly string PlcPortConfig = Path.Combine(ConfigDir, "PLCAddress.txt"); // PLC串口配置文件路径
        public static readonly string CalibrationConfig = Path.Combine(ConfigDir, "Calibration.txt");  //分拣批次数据
        public static readonly string WeightConfig = Path.Combine(ConfigDir, "WeightPortSet.ini");  //称重配置文件
        public static readonly string GlobalConfig = Path.Combine(ConfigDir, "GlobalParamer.txt");  //全局配置文件
        public static readonly string TestGlobalConfig = Path.Combine(ConfigDir, "TestGlobalConfig.txt");  //全局配置文件
        public static readonly string DeviceInfoConfig = Path.Combine(ConfigDir, "DeviceInfo.txt");  //设备信息配置文件
        public static readonly string SerialConfig = Path.Combine(ConfigDir, "Serial.txt");  //串口配置文件
        public static readonly string FileTransCfg = Path.Combine(ConfigDir, "FileTrans.txt");  //文件传输相关配置
        public static readonly string RatingConfig = Path.Combine(ConfigDir, "RatingConfig.txt");  //文件传输相关配置

        public static readonly string ImageOriginPathConfig = Path.Combine("D:\\", "Image");  //保存原始图片的路劲
        public static readonly string ImageTempPathConfig = Path.Combine("D:\\", "CompressImage");  //保存压缩图片的路劲

        //temp data
        //料仓数据、批次信息、农户信息、称重信息
        public static readonly string RocksDBData = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data");  //RocksDB保存临时数据

        //dir
        public static readonly string ModelConfigDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "models");  //模型配置文件存放位置
        public static readonly string DLModelDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DL_MODEL");  //深度学习模型文件存放位置
        public static readonly string ModelDownloadDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "model_download");  //下载模型文件存放位置
        public static readonly string MultiModelDownloadDir = Path.Combine(ModelDownloadDir, "multi_model");  //下载多模型文件存放位置
        public static readonly string ZipModelDownloadDir = Path.Combine(ModelDownloadDir, "zip_model");  //下载深度学习模型的路径
        public static readonly string SingleModelDownloadDir = Path.Combine(ModelDownloadDir, "single_model");  //下载单个模型的路径
        public static readonly string LocalModelDownloadDir = Path.Combine(ModelDownloadDir, "local_service_model");  //从边缘服务器下载模型的路径
        public static readonly string ModelSelection = Path.Combine(ModelConfigDir, "Model_selection.json");  
        public static readonly string ModZipCfg = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "models_multi");


        //图片大小
        public static int RESIZE_IMAGE_WIDTH = 1440;
        public static int RESIZE_IMAGE_HEIGHT = 964;
    }
}
